﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCDemo.Models;

namespace MVCDemo.Controllers
{
    public class DepartmentController : Controller
    {
        //
        // GET: /Department/

        public ActionResult DepartmentList()
        {
            EmployeeContext departmentContext = new EmployeeContext();
            List<Department> dept = departmentContext.Departments.ToList();
            return View(dept);
        }

        
    }
}
